package cn.yunhe.struts.controller;

import java.util.HashMap;
import java.util.Map;
import cn.yunhe.struts.model.UserModel;

public class UserController2{
	
	public String getNickname(){
		return null;
	}
	
	private Map<String,Object> dataMap=new HashMap<String,Object>();
	

	public String queryUser(){
		
		dataMap.clear();
		
		System.out.println(33);
		
		UserModel user = new UserModel();
		user.setUsername("zhangsan");
		user.setUserphone("13803831229");
		
		dataMap.put("user", user);
		
		return "success";
	}



	public Map<String, Object> getDataMap() {
		return dataMap;
	}
	
	public void setDataMap(Map<String, Object> dataMap) {
		this.dataMap = dataMap;
	}
	
	public String getSex(){
		return "男";
	}
	

	
    private String message="csla";
    public void setMessage(String message){
        this.message = message;
    }
 
    public String getMessage() {
        return message;
    }
	
}
